package com.example.stuSysbackend.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.stuSysbackend.domain.User;
import com.example.stuSysbackend.service.UserService;
import com.example.stuSysbackend.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author Cool
* @description 针对表【user(用户表)】的数据库操作Service实现
* @createDate 2024-04-16 16:55:12
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService {

    @Resource
    private UserMapper userMapper;
    @Override
    public User findUserById(Long id) {
        return userMapper.findUserById(id);
    }
}




